<template>
  <div>
    <h3 class="title">{{message}}</h3>
    <button @click="btnClick">按钮</button>
    <h4>{{name}}</h4>
    <Cpn/>
  </div>
</template>

<script>
  import Cpn from './Cpn'

  export default {
    name: "App",
    components: {
      Cpn
    },
    data() {
      return {
        message: 'WebPack',
        name: 'Test'
      }
    },
    methods: {
      btnClick() {
        console.log('按钮');
      }
    }
  }
</script>

<style scoped>
  .title {
    color: aqua;
  }
</style>